<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/>
  </div>
</template>

<script lang="ts">
import { Options, Vue } from 'vue-class-component'
import HelloWorld from '@/components/HelloWorld.vue' // @ is an alias to /src
import axios from '@utils/index'

@Options({
  components: {
    HelloWorld
  },
  mounted () {
    axios.post('/api/v1/modify').then(r => console.log(r))

    setTimeout(() => {
      axios.get('/api/v1/query', {
        params: {
          code: '202202221456',
          nickname: 'alias',
        }
      }).then(r => console.log(r))
    }, 3000)
    window.logger()
    console.log(this.$axios)
  }
})
export default class HomeView extends Vue {}
</script>
